package com.miracle9.game.dao;
import com.miracle9.game.entity.BusineLog;
import java.util.List;
import org.hibernate.SQLQuery;
import org.springframework.stereotype.Repository;

@Repository
public class BusineLogServiceDao extends SqlOperating<BusineLog, Integer>
{
  public List<Object[]> getList(String startDate, String endDate)
  {
    List<Object[]> list = s_CreateSql("select type,sum(money) from busine_log where datetime>=? and datetime<? group by type", new Object[] {
      startDate, endDate }).list();
    return list;
  }
}
